/*
 *    Copyright (c) 2018-2025, boss All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the boss developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: boss
 */

package com.hopes.bizz.hazard.enterprises.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.hopes.bizz.hazard.enterprises.bo.HazEnterprisesAlarmConfigJSON;
import com.hopes.bizz.hazard.enterprises.bo.HazEnterprisesMsgConfigJSON;
import com.hopes.boss.common.entity.BaseLogicEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 企业风险预警设置
 *
 * @author daijie
 * @date 2024-02-01 14:47:55
 */
@Data
@TableName(value = "haz_enterprises_alarm_config", autoResultMap = true)
@EqualsAndHashCode(callSuper = true)
@Schema(description = "企业风险预警设置")
public class HazEnterprisesAlarmConfigEntity extends BaseLogicEntity {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description = "id")
    private Long id;

    /**
     * 是否全局
     */
    @Schema(description = "是否全局")
    private Boolean defaultFlag = false;

    /**
     * 消息推送设置
     */
    @Schema(description = "消息推送设置")
	@TableField(typeHandler = JacksonTypeHandler.class)
    private HazEnterprisesMsgConfigJSON msgConfig;

    /**
     * 风险指标设置
     */
    @Schema(description = "风险指标设置")
	@TableField(typeHandler = JacksonTypeHandler.class)
    private HazEnterprisesAlarmConfigJSON alarmConfig;

    /**
     * 备注
     */
    @Schema(description = "备注")
    private String remarks;

    /**
     * orgId
     */
    @Schema(description = "orgId")
    private Long orgId;

}